/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-9-18 下午4:12 Created by dwzhang
 */
package com.jade.bss.weixin.api.pay.protocol;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.jade.bss.weixin.api.protocol.xml.Response;

/**
 * 统一下单接口响应。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-9-18 下午4:12
 */
@XmlRootElement (name = "xml")
@XmlAccessorType (XmlAccessType.FIELD)
public class UnifiedOrderResponse
        extends Response
{
    //调用接口提交的交易类型
    @XmlElement (name = "trade_type")
    private String tradeType;
    //微信生成的预支付回话标识，用于后续接口调用中使用，该值有效期为2小时
    @XmlElement (name = "prepay_id")
    private String prepayId;
    //二维码链接 trade_type为NATIVE是有返回，可将该参数值生成二维码展示出来进行扫码支付
    @XmlElement (name = "code_url")
    private String codeUrl;

    public String getTradeType()
    {
        return tradeType;
    }

    public void setTradeType(String tradeType)
    {
        this.tradeType = tradeType;
    }

    public String getPrepayId()
    {
        return prepayId;
    }

    public void setPrepayId(String prepayId)
    {
        this.prepayId = prepayId;
    }

    public String getCodeUrl()
    {
        return codeUrl;
    }

    public void setCodeUrl(String codeUrl)
    {
        this.codeUrl = codeUrl;
    }
}
